package com.tcm.mapper;

import com.tcm.entity.dto.ItemPackageDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Guqier
 * @version 1.0
 * @date 2023/9/16 20:04
 */
public interface ItemMapper {


    /**
     * 根据难度获取题目ID和类型
     * @param difficultyId 难度ID
     * @return 题目封装DTO
     */
    ItemPackageDto getItemsByDifficulty(Long difficultyId, Integer offset, @Param("ids") List<Long> ids);

    /**
     * 根据难度获取题目数量
     * @param difficultyId 难度ID
     * @return 题目数量
     */
    Integer getItemCountByDifficulty(Long difficultyId, @Param("ids") List<Long> ids);

}
